<%@page language="java" contentType="text/html;utf-8" pageEncoding="UTF-8" %>
<html>
<script src="js/jquery-3.3.1.js"/>
<body>
<h2>Hello World!</h2>
</body>
<script>
 $(function () {
     $.ajax({
         type:"get",
         url:"/FindByid",
         beforeSend:function (request) {
             request.setRequestHeader("x-access-token","--jdhfkjshdfkjsd-----");
         },
         success:function (data) {

         }

     })
 })
</script>
<h1>获取失败</h1>
</html>
